<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登陆页面</title>
</head>
<body>

<form action="/verify" method="post">

    用户名：<input type="text" name="username" id="username">
    <br>
    密      码：<input type="password" name="password" id="password">
    <br>
    验证码：<input type="text" name="code"><input type="button" value="获取" id="button">
    <br>
    <input type="submit" value="登陆">
</form>

<script type="application/javascript">

    var button  =document.getElementById("button");

    button.onclick = function () {

        // 获取用户输入的信息
        var username = document.getElementById("username").value;

        var password = document.getElementById("password").value;

        if (username == '' || password == ''){

            alert("请填入信息");

        }else {

            window.location.href = '/qrcode?username=fc';
        }

    }
</script>
</body>
</html>
